require('./PageOkmsg.less');

import ReactMixin from 'react-mixin';
import { Control } from 'react-keeper'
import { Msg,Page } from 'react-weui/build/packages';
import Footer from './../../../components/mfooter'

class Okmsg extends React.Component {
  constructor(props) {
    super(props);
    this.gotoHome = this.gotoHome.bind(this);
  }

  gotoHome() {
    Control.replace('home', '1234567');
  }

  render() {

    const SuccessFooter = ()=>(<Footer />);

    return (
      <Page className="page okmsg" infiniteLoader={false} ptr={false}>
        <Msg
          type="success"
          title="提示信息"
          description={<div>您成功的提交了信息!</div>}
          buttons={[{
                type: 'primary',
                label: '确定',
                onClick: this.gotoHome
            }]}
          footer={SuccessFooter}
        />
      </Page>

    );
  }

  componentWillMount() {

  }

  componentDidMount() {

  }

}


export default Okmsg ;
